<%@page import="java.util.List"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/view-system/include/myTaglib.jsp"%>

<html>
<head>
	<title>员工信息页面</title>
	<script src="${ctxStaticSystem }/js/staff/staff.js" type="text/javascript" ></script>
	<link href="${ctx}/static-system/css/staff/staff.css" rel="stylesheet" type="text/css"/>
</head> 
<body>
<!-- 新增员工 -->
<tags:ajax id="addStaffAjax" url="${ctx }/sys/staffMgr/addStaff" autoSend='false' type='post'
		   formQuery="#createStaffFrm"
		   formSubmit="true" contentType="application/x-www-form-urlencoded" onSuccess="onSaveStaffSucc" />

<%--新增员工信息--%>
		<form action="" id="createStaffFrm">
			<div class='form-horizontal'>
				<div class="form-group">
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>员工姓名：</span>
						</div>
						<div class="col-md-9">
							<input id="staffName1" name="staffName" type="text" class="inputC form-control" required="required">
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>用户编号：</span>
						</div>
						<div class="col-md-9">
							<input id="staffId1" name="staffId" type="text" class="inputC form-control" required="required">
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>登录密码：</span>
						</div>
						<div class="col-md-9">
							<input id="staffPwd1" name="staffPsw" type="text" class="inputC form-control" required="required">
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>所属部门：</span>
						</div>
						<div class="col-md-9">
							<div class="input-group">
								<input  id="staffNetId1"   name="staffOrgName" type="hidden" class="form-control" required="required">
								<input style="width: 80%" id="staffNetName1"  name="staffNetName" type="text" readonly="readonly" class="form-control" data-toggle="tooltip">
								<span class="input-group-btn" style="float:left">
									<button class="btn btn-warning" type="button" onclick="btnEvents.alertTree('1')">选择</button>
								</span>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：</span>
						</div>
						<div class="col-md-9">
							<%--<input name="state" type="text" class="inputC form-control" required="required">--%>
								<select name="state" class="inputC form-control">
									<option value="1">正常</option>
									<option value="0">禁用</option>
								</select>
						</div>

					</div>
				</div>
			</div>
			<div style="text-align: center;">
				<button class="btn btn-primary m-btn" onclick="btnEvents.commitAddStaff()">提交</button>
				<button type="reset" class="btn btn-default m-btn" data-dismiss="modal">取消</button>
			</div>
		</form>
</body>
	
</html>